import service from '@/utils/request'

export const useWarehouseApi = (id: number) => {
	return service.get('/erp/warehouse/' + id)
}

export const useWarehouseSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/erp/warehouse', dataForm)
	} else {
		return service.post('/erp/warehouse', dataForm)
	}
}
